package org.sn.jdish.designmode.singleton;

/**
 * 单例（饿汉）
 * 
 * @author snzig
 *
 */
public class HungrySingleton {

	private HungrySingleton() {
	}

	private static final HungrySingleton singleton = new HungrySingleton();

	public static HungrySingleton getInstance() {
		return singleton;
	}

	public void singleton() {
		System.out.println("this is a singleton method!");
	}

}
